package com.tsinjie.metadata.database.model;

/**
 * Created by LiuXunming on 2014-07-21.
 * 数据库表被引用的键
 */
public class ExportColumn extends Column {
    /**
     * 引用表名
     */
    private String importTableName;
    /**
     * 应用表字段名
     */
    private String importColumnName;

    public String getImportTableName() {
        return importTableName;
    }

    public void setImportTableName(String importTableName) {
        this.importTableName = importTableName;
    }

    public String getImportColumnName() {
        return importColumnName;
    }

    public void setImportColumnName(String importColumnName) {
        this.importColumnName = importColumnName;
    }

    @Override
    public String toString() {
        return "ExportColumn{" +
                "columnName='" + columnName + '\'' +
                ", type=" + type +
                ", length=" + length +
                ", nullable=" + nullable +
                ", defaultValue=" + defaultValue +
                ", comment='" + comment + '\'' +
                ", importTableName='" + importTableName + '\'' +
                ", importColumnName='" + importColumnName + '\'' +
                '}';
    }
}
